/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rpt.lib;

import java.awt.Color;
import javax.swing.JComboBox;

/**
 *
 * @author Roberto
 */
public class CCoresComboBox extends JComboBox {
    public CCoresComboBox() {
        int[] values = new int[] { 0, 128, 192, 255 };
        for (int r = 0; r < values.length; r++)
          for (int g = 0; g < values.length; g++)
            for (int b = 0; b < values.length; b++) {
              Color c = new Color(values[r], values[g], values[b]);
              this.addItem(c);
            }
        this.setRenderer(new CColorComboBoxRenderer());
    }
}
